from util import get_token,get_camera_list
import json
if __name__ == '__main__':
    # port_list = [5000, 5010, 5020, 5030]
    port_list = [5001,5002,5003,5004,5005,5031,5032,5033,5034,5035]
    for i in range(len(port_list)):
        gpu_id = i
        port = port_list[i]
        camera_list = get_camera_list(port)
        num=len(camera_list)
        data = json.dumps(camera_list)
        num_all=num+num
        print(data)
    print(data)


